/**
 * 一体化灵活员工路由
 */

import Main from '@/components/main'
import parentView from '@/components/parent-view'

const businessSectorRouter = {
  path: '/business-sector',
  name: 'business-sector',
  meta: {
    keepAlive: true,
    icon: '_yitihualinghuoyonggong',
    showAlways: true,
    access: ['business-sector'],
    title: '一体化灵活用工'
  },
  component: Main,
  children: [
    {
      path: 'customerManage',
      name: 'customerManage',
      meta: {
        keepAlive: true,
        showAlways: true,
        access: ['customerManage'],
        title: '客户管理'
      },
      component: parentView,
      children: [
        {
          path: 'customerInformation',
          name: 'customerInformation',
          meta: {
            keepAlive: true,
            title: '客户信息',
            access: ['customerInformation']
            // notCache: false
          },
          component: () => import('@/view/business-sector/customerManage/CustomerInformation/CustomerInformation.vue')
        },
        {
          path: 'CustomerInformationDetail',
          name: 'CustomerInformationDetail',
          meta: {
            keepAlive: true,
            title: '客户详情',
            hideInMenu: true,
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerInformation/CustomerInformationDetail.vue')
        },
        {
          path: 'EmployeeBook',
          name: 'EmployeeBook',
          meta: {
            keepAlive: true,
            title: '员工花名册',
            access: ['roster'],
            hideInMenu: true
            // notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/EmployeeBook/EmployeeBookList.vue')
        },
        {
          path: 'InsuranceInfoSet',
          name: 'InsuranceInfoSet',
          meta: {
            keepAlive: false,
            title: '参保信息设置',
            hideInMenu: true,
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/EmployeeBook/InsuranceInfoSet.vue')
        },
        {
          path: 'InsuranceInfoBatchSet',
          name: 'InsuranceInfoBatchSet',
          meta: {
            keepAlive: false,
            title: '参保信息批量设置',
            hideInMenu: true,
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/EmployeeBook/InsuranceInfoBatchSet.vue')
        },
        {
          path: 'EmployeeCreate',
          name: 'EmployeeCreate',
          meta: {
            keepAlive: false,
            title: '员工新增',
            hideInMenu: true,
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/EmployeeBook/EmployeeCreate.vue')
        },
        {
          path: 'changesVerify',
          name: 'changesVerify',
          meta: {
            keepAlive: true,
            access: ['changesVerify'],
            title: '异动查询'
          },
          component: parentView,
          children: [
            {
              path: 'ssChangesVerifyManage',
              name: 'ssChangesVerifyManage',
              meta: {
                keepAlive: true,
                title: '社保异动查询',
                access: ['ssChangesVerifyManage']
                // notCache: true
              },
              component: () => import('@/view/business-sector/changesManage/SsChangesManage/SsChangesManage.vue')
            },
            {
              path: 'afChangesVerifyManage',
              name: 'afChangesVerifyManage',
              meta: {
                keepAlive: true,
                title: '公积金异动查询',
                access: ['afChangesVerifyManage']
                // notCache: true
              },
              component: () => import('@/view/business-sector/changesManage/AfChangesManage/AfChangesManage.vue')
            },
            {
              path: 'ciChangesVerifyManage',
              name: 'ciChangesVerifyManage',
              meta: {
                keepAlive: true,
                title: '商保异动查询',
                access: ['ciChangesVerifyManage']
                // notCache: true
              },
              component: () => import('@/view/business-sector/changesManage/CIChangesVerifyManage.vue')
            }
          ]
        },
        {
          path: 'CustomerSalary',
          name: 'CustomerSalary',
          meta: {
            keepAlive: true,
            access: ['CusSalary'],
            title: '客户薪资'
          },
          component: parentView,
          children: [
            {
              path: 'CustomerSalarys',
              name: 'CustomerSalarys',
              meta: {
                keepAlive: false,
                title: '薪资基础数据',
                access: ['SalaryBasedata']
                // notCache: false
              },
              component: parentView,
              children: [
                {
                  path: 'EmpAuthentication',
                  name: 'EmpAuthentication',
                  meta: {
                    keepAlive: false,
                    title: '员工认证状态',
                    access: ['EmployeeAuth']
                    // notCache: false
                  },
                  component: () => import('@/view/business-sector/customerManage/CustomerSalary/baseData/empAuthentication/empAuthentication.vue')
                },
                {
                  path: 'SpecialAdditionalDeductions',
                  name: 'SpecialAdditionalDeductions',
                  meta: {
                    keepAlive: false,
                    title: '专项附加扣除',
                    access: ['EmployeeSpecialDeduct']
                    // notCache: false
                  },
                  component: () => import('@/view/business-sector/customerManage/CustomerSalary/baseData/specialAdditionalDeductions/specialAdditionalDeductions.vue')
                },
                {
                  path: 'SysInitCustomerSalary',
                  name: 'SysInitCustomerSalary',
                  meta: {
                    keepAlive: false,
                    title: '初始化薪资',
                    access: ['SysInitCustomerSalary']
                    // notCache: false
                  },
                  component: () => import('@/view/business-sector/customerManage/SysInitCustomerSalary/SysInitCustomerSalary.vue')
                },
                {
                  path: 'SysInitCustomerSalaryDetail',
                  name: 'SysInitCustomerSalaryDetail',
                  meta: {
                    keepAlive: false,
                    hideInMenu: true,
                    title: '初始化薪资明细',
                    access: ['SysInitCustomerSalary'],
                    notCache: true
                  },
                  component: () => import('@/view/business-sector/customerManage/SysInitCustomerSalary/SysInitCustomerSalaryDetail.vue')
                },
              ]
            },
            {
              path: 'CustomerSalaryList',
              name: 'CustomerSalaryList',
              meta: {
                keepAlive: false,
                title: '薪资核算',
                access: ['CustomerSalary']
                // notCache: false
              },
              component: () => import('@/view/business-sector/customerManage/CustomerSalary/CustomerSalary.vue')
            },
            
          ]
        },
        // {
        //   path: 'CustomerSalary',
        //   name: 'CustomerSalary',
        //   meta: {
        //     keepAlive: false,
        //     title: '客户薪资',
        //     access: ['CustomerSalary']
        //     // notCache: false
        //   },
        //   component: () => import('@/view/business-sector/customerManage/CustomerSalary/CustomerSalary.vue')
        // },
        {
          path: 'CustomerSalaryDetail',
          name: 'CustomerSalaryDetail',
          meta: {
            keepAlive: false,
            hideInMenu: true,
            title: '客户薪资明细',
            access: ['CustomerSalary'],
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerSalary/CustomerSalaryDetail.vue')
        },
        {
          path: 'CustomerBill',
          name: 'CustomerBill',
          meta: {
            keepAlive: true,
            title: '客户账单',
            access: ['CustomerBill']
            // notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerBill/CustomerBill.vue')
        },
        {
          path: 'CustomerBillDetail',
          name: 'CustomerBillDetail',
          meta: {
            keepAlive: false,
            hideInMenu: true,
            title: '客户账单明细',
            access: ['CustomerBill'],
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerBill/CustomerBillDetail.vue')
        },
        {
          path: 'manual-bill',
          name: 'manual-bill',
          meta: {
            keepAlive: false,
            hideInMenu: true,
            title: '手工账单',
            access: ['CustomerBill'],
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerBill/ManualBill.vue')
        },
        {
          path: 'AdjustBill',
          name: 'AdjustBill',
          meta: {
            keepAlive: false,
            hideInMenu: true,
            title: '手工调账',
            access: ['CustomerBill'],
            notCache: true
          },
          component: () => import('@/view/business-sector/customerManage/CustomerBill/AdjustBill.vue')
        },
        // {
        //   path: 'CustomerBillMerge',
        //   name: 'CustomerBillMerge',
        //   meta: {
        //     keepAlive: true,
        //     title: '账单合并',
        //     access: ['MergedBill']
        //     // notCache: false
        //   },
        //   component: () => import('@/view/business-sector/customerManage/CustomerBillMerge/CustomerBillMerge.vue')
        // },
        {
          path: 'CustomerBillMergeNew',
          name: 'CustomerBillMergeNew',
          meta: {
            keepAlive: true,
            title: '账单合并',
            access: ['MergedBill'],
            // notCache: false,
            // hideInMenu: true,
          },
          component: () => import('@/view/business-sector/customerManage/CustomerBillMergeNew/CustomerBillMerge.vue')
        },
        {
          path: 'charging-scheme',
          name: 'charging-scheme',
          meta: {
            keepAlive: true,
            title: '收费方案管理',
            access: ['InsureProject']
            // notCache: false
          },
          component: () => import('@/view/business-sector/customerManage/charging-scheme/index.vue')
        }
      ]
    },
    {
      path: 'ssManage',
      name: 'ssManage',
      meta: {
        keepAlive: true,
        showAlways: true,
        access: ['ssManage'],
        title: '企业社保'
      },
      component: parentView,
      children: [
        {
          path: 'ssCodeManage',
          name: 'ssCodeManage',
          meta: {
            keepAlive: true,
            title: '社保编号管理',
            access: ['ssCodeManage']
          },
          component: () => import('@/view/business-sector/socialManage/busiSsCodeManage.vue')
        },
        {
          path: 'ssChangesManage',
          name: 'ssChangesManage',
          meta: {
            keepAlive: true,
            title: '社保异动管理',
            access: ['ssChangesManage']
            // notCache: true
          },
          component: () => import('@/view/business-sector/socialManage/busiSsChangesManage.vue')
        },
        {
          path: 'socialWagesManage',
          name: 'socialWagesManage',
          meta: {
            keepAlive: false,
            title: '社保待遇管理',
            access: ['TreatmentEnjoyManage'],
            notCache: true
          },
          component: () => import('@/view/business-sector/socialWagesManage/socialWagesManage.vue')
        },
        {
          path: 'editSocialNode',
          name: 'editSocialNode',
          meta: {
            title: '查看环节',
            hideInMenu: true,
            notCache: true,
            access: ['TreatmentEnjoyManage']
          },
          component: () => import('@/view/business-sector/socialWagesManage/editNode.vue')
        },
        {
          path: 'socialWagesAudit',
          name: 'socialWagesAudit',
          meta: {
            keepAlive: false,
            title: '社保待遇审核',
            access: ['TreatmentEnjoyAudit'],
            notCache: true
          },
          component: () => import('@/view/business-sector/socialWagesManage/socialWagesAudit.vue')
        }
      ]
    },
    {
      path: 'afManage',
      name: 'afManage',
      meta: {
        keepAlive: true,
        showAlways: true,
        access: ['afManage'],
        title: '企业公积金'
      },
      component: parentView,
      children: [
        {
          path: 'afCodeManage',
          name: 'afCodeManage',
          meta: {
            keepAlive: true,
            title: '公积金编号管理',
            access: ['afCodeManage']
          },
          component: () => import('@/view/business-sector/fundManage/busiAfCodeManage.vue')
        },
        {
          path: 'afChangesManage',
          name: 'afChangesManage',
          meta: {
            keepAlive: true,
            title: '公积金异动管理',
            access: ['afChangesManage']
            // notCache: true
          },
          component: () => import('@/view/business-sector/fundManage/busiAfChangesManage.vue')
        },
        {
          path: 'fundWagesManage',
          name: 'fundWagesManage',
          meta: {
            keepAlive: false,
            title: '公积金待遇管理',
            access: ['CAFundTreatmentEnjoyManage'],
            notCache: true
          },
          component: () => import('@/view/business-sector/fundWagesManage/fundWagesManage.vue')
        },
        {
          path: 'editFundNode',
          name: 'editFundNode',
          meta: {
            title: '查看环节',
            hideInMenu: true,
            notCache: true,
            access: ['CAFundTreatmentEnjoyManage']
          },
          component: () => import('@/view/business-sector/fundWagesManage/editNode.vue')
        },
        {
          path: 'fundWagesAudit',
          name: 'fundWagesAudit',
          meta: {
            keepAlive: false,
            title: '公积金待遇审核',
            access: ['CAFundTreatmentEnjoyAudit'],
            notCache: true
          },
          component: () => import('@/view/business-sector/fundWagesManage/fundWagesAudit.vue')
        }
      ]
    },
    {
      path: 'ciManage',
      name: 'ciManage',
      meta: {
        keepAlive: true,
        showAlways: true,
        access: ['ciManage'],
        title: '企业商保'
      },
      component: parentView,
      children: [
        {
          path: 'ciCodeManage',
          name: 'ciCodeManage',
          meta: {
            keepAlive: true,
            title: '商保编号管理',
            access: ['ciCodeManage']
          },
          component: () => import('@/view/business-sector/commercialManage/CICodeManage.vue')
        },
        {
          path: 'ciChangeManage',
          name: 'ciChangeManage',
          meta: {
            keepAlive: true,
            title: '商保异动管理',
            access: ['ciChangeManage']
            // notCache: true
          },
          component: () => import('@/view/business-sector/commercialManage/CIChangeManage.vue')
        },
        {
          path: 'commercialWagesManage',
          name: 'commercialWagesManage',
          meta: {
            keepAlive: false,
            title: '商保待遇管理',
            access: ['CITreatmentEnjoyManage'],
            notCache: true
          },
          component: () => import('@/view/business-sector/commercialWagesManage/commercialWagesManage.vue')
        },
        {
          path: 'editCommercialNode',
          name: 'editCommercialNode',
          meta: {
            title: '查看环节',
            hideInMenu: true,
            notCache: true,
            access: ['CITreatmentEnjoyManage']
          },
          component: () => import('@/view/business-sector/commercialWagesManage/editNode.vue')
        },
        {
          path: 'commercialWagesAudit',
          name: 'commercialWagesAudit',
          meta: {
            keepAlive: false,
            title: '商保待遇审核',
            access: ['CITreatmentEnjoyAudit'],
            notCache: true
          },
          component: () => import('@/view/business-sector/commercialWagesManage/commercialWagesAudit.vue')
        }
      ]
    },
    {
      path: 'rosterManage',
      name: 'rosterManage',
      meta: {
        keepAlive: true,
        showAlways: true,
        access: ['roster'],
        title: '员工管理'
      },
      component: parentView,
      children: [
        {
          path: 'roster',
          name: 'roster',
          meta: {
            keepAlive: true,
            title: '员工管理',
            access: ['roster'],
            notCache: false
          },
          component: () => import('@/view/business-sector/rosterManage/roster/rosterList.vue')
        },
        {
          path: 'socialProvidentBasicData',
          name: 'socialProvidentBasicData',
          meta: {
            keepAlive: false,
            title: '社保公积金基数管理',
            access: ['EmployeeInsured'],
            notCache: true
          },
          component: () => import('@/view/business-sector/rosterManage/basicData/socialProvidentBasicData.vue')
        },
        {
          path: 'commercialBasicData',
          name: 'commercialBasicData',
          meta: {
            keepAlive: false,
            title: '商保基数管理',
            access: ['EmployeeInsuredCommercial'],
            notCache: true
          },
          component: () => import('@/view/business-sector/rosterManage/basicData/commercialBasicData.vue')
        },
        {
          path: 'waitInduction',
          name: 'waitInduction',
          meta: {
            keepAlive: false,
            title: '待入职员工',
            access: ['EmployeeQuickEntry'],
            notCache: true
          },
          component: () => import('@/view/business-sector/waitInduction/waitInduction.vue')
        },
        {
          path: 'quickInduction',
          name: 'quickInduction',
          meta: {
            keepAlive: false,
            title: '快速入职模板配置',
            access: ['SysQuickEntryTemplate'],
            notCache: true
          },
          component: () => import('@/view/business-sector/quickInduction/quickInduction.vue')
        }
      ]
    },
  ]
}

export default businessSectorRouter